﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace fm2
{
	public class ToolStripEx : ToolStrip
	{
		internal const int WM_MOUSEACTIVATE = 0x21;

		protected override void WndProc(ref Message m)
		{
			if (m.Msg == WM_MOUSEACTIVATE && this.CanFocus && !this.Focused) {
				this.Focus();
			}
			base.WndProc(ref m);
		}
	}

	public class ToolStripSystemRendererEx : ToolStripSystemRenderer
	{
		public ToolStripSystemRendererEx() { }
		protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
		{
			//base.OnRenderToolStripBorder(e);
		}
	}
}
